import CryptoJS from "crypto-js";
function setAES(data) {
  let cipherText = CryptoJS.AES.encrypt(data, "heixian").toString();
  return cipherText;
}
function getAES(data) {
  let bytes = CryptoJS.AES.decrypt(data, "heixian");
  let originalText = bytes.toString(CryptoJS.enc.Utf8);
  return originalText;
}
export default {
  setAES,
  getAES
};
